Huddersfield's faint hopes of automatic promotion were boosted as Collin Quaner's stoppage-time winner surely ended Preston's bid for a top-six spot.